package com.knowvoyage.knowvoyageserver.mapper;

import com.knowvoyage.knowvoyageserver.pojo.entity.ErrorRecord;
import com.knowvoyage.knowvoyageserver.pojo.vo.ErrorRecordVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ErrorRecordMapper {
    void insert(ErrorRecord errorRecord);
    void delete(Long errorRecordId);
    ErrorRecord selectById(Long errorRecordId);
    ErrorRecord selectByBookAndQuestion(Long bookId,Long questionId);
    List<ErrorRecordVO> selectByBook(Long bookId);
    List<ErrorRecordVO> selectEbbingByBook(Long bookId,List<Long> days);

    List<ErrorRecord> selectByIds(List<Long> recordIds);

    void deleteBatch(List<Long> recordIds);
}
